AsynchroSerial
 
 
 Bean AsynchroSerial
 
Asynchronous serial communication

User types are derived from basic types and they are designed for usage in driver interface. The following types are supported: pointer, array, structure, union and user declaration.

User types:

  • tItem = Record - Item of the index table for possible baudrates
    div : word;
    divisor
    val : byte;
    values of the prescalers
    End;
  • BeanName_TError : user definition
    typedef union {
      byte err;
      struct {
        bool OverRun  : 1;   /* Overrun error flag */
        bool Framing  : 1;   /* Framing error flag */
        bool Parity   : 1;   /* Parity error flag */
        bool RxBufOvf : 1;   /* Rx buffer full error flag */
        bool Noise    : 1;   /* Noise error flag */
        bool Break    : 1;   /* Break detect */
        bool LINSync  : 1;   /* LIN synchronization error */
        bool BitError  : 1;   /* Bit error flag - mismatch to the expected value happened. */
      } errName;
    } BeanName_TError;
    Error flags. For languages which don't support bit access is byte access only to error flags possible.
  • BeanName_TComData = byte; - User type for communication. Size of this type depends on the communication data witdh.



Processor ExpertTM and Embedded BeansTM are registered trademarks of UNIS, Ltd.
©1997-2005, UNIS, Ltd.